package com.springboot.web.aop;

import org.springframework.stereotype.Component;

@Component
public class Performer {

    public void perform (boolean flag) {
        if (!flag)
            throw new RuntimeException("演员演砸了");
        System.out.println("演员正在表演");
    }
}
